package main

import "fmt"

//自定义数据类型和类型别名

//类型别名无法绑定方法  数据类型还是int 而自定义数据类型类型会改变

type Code0 int
type Code1 = int

const (
	SuccessCode1     Code0 = 1
	SuccessAliasCode Code1 = 2
)

func main() {
	fmt.Printf("%v,%T\n", SuccessCode1, SuccessCode1)
	fmt.Printf("%v,%T\n", SuccessAliasCode, SuccessAliasCode)
	var num = 10
	if num == int(SuccessCode1) {
		fmt.Println("aaa")
	}
}
